/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.era7bioinformatics.aws.s3.components.beta1.ids

// implementing this
import com.era7bioinformatics.aws.s3.components.generic.ids.CanonicalUserID

class CanonicalUserIDimpl(theValue: String, theDisplayName: String = "") extends CanonicalUserID {


  override val value: String = theValue

  val displayName: String = theDisplayName

}

//  Why am I forced to extend the same stuff as the companion class?
object CanonicalUserIDimpl extends CanonicalUserIDimpl("") {

  def apply(theValue: String): CanonicalUserID = new CanonicalUserIDimpl(theValue)
  def apply(theValue: String, theDisplayName: String) = new CanonicalUserIDimpl(theValue, theDisplayName)

  

  
  


  
}
